package com.goockr.verificationdemo;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;

public class Verification2Activity extends AppCompatActivity {
    App app;
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_verification2);

        app=(App) getApplication();

        Button bt_Verification1=(Button)findViewById(R.id.bt_Verification2);
        bt_Verification1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                //存储标志位，验证过了
                app.editor.putBoolean("isVerification",true);
                app.editor.commit();

                Intent intent=new Intent(Verification2Activity.this,MainActivity.class);
                startActivity(intent);
            }
        });
    }
}
